﻿@{
    ViewData["Title"] = "Home Page";
}
<script src="~/js/header.js"></script>
<h1><a href="~/login.html">登录</a></h1>
<script type="text/javascript">
    var username = $.cookie('username');
    var companyname = $.cookie('companyname');
    var token = $.cookie('token');
    if (FlashPay.Util.isNullOrEmptySpance(username) || FlashPay.Util.isNullOrEmptySpance(companyname) || FlashPay.Util.isNullOrEmptySpance(token)) {
        window.location.href = "/login.html"
    } else {
        window.location.href = "/index.html"
    }
</script>